package tema03.ex1;

public class AlumneBecari extends Alumne {

	   private float salari;

	   public AlumneBecari(String newNombre, int newDni, float salari) {
	      super(newNombre, newDni);
	      setSalari(salari);
	   }
	   
	   

	   public float getSalari() {
	      return salari;
	   }

	   public void setSalari(float newSalari) {
	      salari = newSalari;
	   }
	   
	   @Override
	   public String toString() {
		   	return super.toString()+ " - salari: "+ salari;
	   }
	}
